package de.hsowl.routemath.gui.elements

import org.lwjgl.opengl._

/**
 * Created by IntelliJ IDEA.
 * User: Gulnara Mosch, Sascha Ortmann
 * Date: 19.03.11
 * Time: 14:24
 * To change this template use File | Settings | File Templates.
 */

class RectangleGL {
  var v1 = 0;
  var v2 = 10;
  var v3 = 10;

  def render() {
    GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
    GL11.glPushMatrix()
    GL11.glColor4f(0f, 0f, 1f, 0.5f)
    GL11.glRectf(-0.99f, -0.5f, 0.5f, 0.99f)
    GL11.glPopMatrix()
  }
}